JavaScript

A5.emailValid Method

Syntax

var isValid = A5.emailValid(email);

Arguments

emailstring

The email address to validate.

Returns

isValidboolean

Returns true if valid, otherwise false.

Description

Validates an email address using the RFC 2822 standard regex expression.

Discussion

The A5.emailValid() method validates an email address using the RFC 2822 standard regex expression. This function can be used in the Validation Javascript property of an input control. For example:

Example

var isValid = A5.emailValid(data);

if (isValid) {
    return true;
} else {
    return 'Not valid email';
}